Skip to main content

formatDate

formatDate

formatDate(inputDate: string | number , format: string , useSystemCalendar: boolean , options: any ) : string

Function Parameters

inputDate:::

  • inputDate: string | number

Can be either a parseable format of date or an epoch value.

format:::

  • format: string

a dateFormatPresets or a format pattern string.

useSystemCalendar:::

  • useSystemCalendar: boolean

If any custom calendar setting (e.g. quarterStartMonth) is to be ignored.

options:::

  • options: any

Returns

string

Defined in : link:https://github.com/thoughtspot/ts-chart-sdk/blob/f477c20/src/utils/date-formatting.ts#L637

--